import { Injectable } from '@nestjs/common'
import { PrismaService } from '../prisma/prisma.service'

@Injectable()
export class WebLinkService {
    constructor(private readonly prisma: PrismaService) {}

    findAll() {
        return this.prisma.link.findMany({
            where: { status: 1 },
            select: {
                title: true,
                slogan: true,
                cover: true,
                href: true
            }
        })
    }
}
